package com.chandra.pos.employee.service;

/* @(#) EmployeeDao.java
 * Copyright 2013 - 2015 QatarAirways Group. All Rights Reserved.
 *
 * This Software is the proprietary information of QR Group
 * Use is subject to License terms.
 * Created by T4671 on 18/03/2015.
 */

import com.chandra.pos.employee.model.EmployeeFilter;
import com.chandra.pos.employee.model.EmployeeList;
import com.chandra.pos.employee.model.EmployeeModel;

import javax.persistence.EntityExistsException;
import javax.persistence.EntityNotFoundException;

public interface EmployeeRole {
    public EmployeeModel saveEmployee(EmployeeModel employeeModel) throws EntityExistsException;

    public EmployeeModel updateEmployee(EmployeeModel employeeModel);

    public EmployeeList searchEmployee(EmployeeFilter employeeModel);

    public EmployeeModel getByUserName(String userName) throws EntityNotFoundException;

    public EmployeeModel getEmployeeDetail(EmployeeFilter filter) throws EntityNotFoundException;
}
